<div class="imgContainer" *ngIf="images.length>0">
  <!--一张图片-->
  <div class="oneImgContainer" *ngIf="images.length===1">
    <div *ngFor="let image of images;let i = index"  (click)="pswpElementInit(i)">
      <img [class]="'gallery-'+ _details + g_id" [src]="image.src">
    </div>
  </div>
  <!--两张图片-->
  <div class="twoImgContainer" *ngIf="images.length===2">
    <div class="many_two" *ngFor="let image of images;let i = index" (click)="pswpElementInit(i)">
      <img [class]="'gallery-'+  _details + g_id" [src]="image.src">
    </div>
    <div class="clearFloat"></div>
  </div>

  <!--四张图片-->
  <div class="fourImgContainer" *ngIf="images.length===4">
    <div class="many_four" *ngFor="let image of images;let i = index" (click)="pswpElementInit(i)">
      <img [class]="'gallery-'+  _details + g_id" [src]="image.src">
    </div>
    <div class="clearFloat"></div>
  </div>

  <!--多张图片-->
  <div class="manyImgContainer" *ngIf="images.length!==1 && images.length!==4 && images.length!==2">
    <div class="many" *ngFor="let image of images;let i = index" (click)="pswpElementInit(i)">
      <img [class]="'gallery-'+  _details + g_id" [src]="image.src">
    </div>
    <div class="clearFloat"></div>
  </div>
</div>
